Skip to content

Don't discard query string for usage queries#1312

Open
joecaswell wants to merge 1 commit into2.0from
jhc-rewrite-querystring
Open

Don't discard query string for usage queries#1312
joecaswell wants to merge 1 commit into2.0from
jhc-rewrite-querystring

Conversation

@joecaswell
Copy link

The riak_cs_wm_usage module expects parameters to be passed via query string. Using s3curl a request would be made as such:

s3curl.pl --id admin -- -s -x localhost:8080 -v "http://s3.amazonaws.com/riak-cs/usage/T0FMWBBK6-P-LJFYHWBG?b&s=20160505T1200&e=20160505T180000Z"

Currently riak_cs_s3_rewrite:rewrite_path/4 discards the query string for all URIs starting with "/riak-cs", so no results are returned. This PR would include the query string when the URI is "/riak-cs/usage"

The riak_cs_wm_usage module expects parameters to be passed via query string.  Using s3curl a request would be made as such:

```
s3curl.pl --id admin -- -s -x localhost:8080 -v "http://s3.amazonaws.com/riak-cs/usage/T0FMWBBK6-P-LJFYHWBG?b&s=20160505T1200&e=20160505T180000Z"
```

Currently riak_cs_s3_rewrite:rewrite_path/4 discards the query string for all URIs starting with "/riak-cs", so no results are returned.  This PR would include the query string when the URI is "/riak-cs/usage"
@joecaswell joecaswell added the Bug label May 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant